// Cresent Valley Custom Object Types

beginscendatascript;

// custom floors

// damaging floors
begindefinefloor 135;
	import = 0;
	fl_special_property = 3;
	fl_special_strength = 10;
	fl_shortcut_key = -1;
begindefinefloor 136;
	import = 4;
	fl_special_property = 3;
	fl_special_strength = 10;
	fl_shortcut_key = -1;
begindefinefloor 137;
	import = 37;
	fl_special_property = 3;
	fl_special_strength = 10;
	fl_shortcut_key = -1;
begindefinefloor 138;
	import = 41;
	fl_special_property = 3;
	fl_special_strength = 10;
	fl_shortcut_key = -1;
begindefinefloor 139;
	import = 95;
	fl_special_property = 3;
	fl_special_strength = 10;
	fl_shortcut_key = -1;

// custom terrain

// dirt roads
begindefineterrain 478;
	import = 410;
	te_name = "Dirt Road";
	te_which_sheet = 501;
	te_which_icon = 0;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 0;
	te_is_road = 1;
	te_draw_on_automap = 1;
begindefineterrain 479;
	te_which_icon = 1;
	te_ed_which_icon = 1;
begindefineterrain 480;
	te_which_icon = 2;
	te_ed_which_icon = 2;
begindefineterrain 481;
	te_which_icon = 3;
	te_ed_which_icon = 3;
begindefineterrain 482;
	te_which_icon = 4;
	te_ed_which_icon = 4;
begindefineterrain 483;
	te_which_icon = 5;
	te_ed_which_icon = 5;
begindefineterrain 484;
	te_which_icon = 6;
	te_ed_which_icon = 6;
begindefineterrain 485;
	te_which_icon = 7;
	te_ed_which_icon = 7;
begindefineterrain 486;
	te_which_icon = 8;
	te_ed_which_icon = 8;
begindefineterrain 487;
	te_which_icon = 9;
	te_ed_which_icon = 9;
begindefineterrain 488;
	te_which_icon = 10;
	te_ed_which_icon = 10;
// dirt road / grass hill
begindefineterrain 489;
	te_which_icon = 11;
	te_ed_which_icon = 11;
	te_special_property = 25;
begindefineterrain 490;
	te_which_icon = 12;
	te_ed_which_icon = 12;
	te_special_property = 21;
begindefineterrain 491;
	te_which_icon = 13;
	te_ed_which_icon = 13;
	te_special_property = 19;
begindefineterrain 492;
	te_which_icon = 14;
	te_ed_which_icon = 14;
	te_special_property = 23;
// flaming event (pit)
begindefineterrain 493;
	clear;
	te_name = "Lighthouse Light";
	te_which_sheet = 501;
	te_which_icon = 15;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 15;
	te_draw_on_automap = 1;
	te_anim_steps = 4;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;
	te_light_radius = 12;
begindefineterrain 494;
	import = 178;
	te_name = "Bookshelf";
	te_which_sheet = 724;
	te_which_icon = 9;
	te_ed_which_sheet = 682;
	te_ed_which_icon = 49;
	te_icon_offset_x = -18;
	te_icon_offset_y = -12;
	te_can_look_at = 1;
	te_move_block_e = 0;
begindefineterrain 495;
	import = 146;
	te_name = "Herbs Shrub";
	te_can_look_at = 1;
	te_default_script = "herbs";
begindefineterrain 496;
	import = 268;
	te_full_move_block = 0;
begindefineterrain 497;
	clear;
	te_name = "Hell Light";
	te_which_sheet = 504;
	te_which_icon = 0;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 16;
	te_draw_on_automap = 1;
	te_anim_steps = 4;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;
	te_light_radius = 2;
begindefineterrain 498;
	import = 206;
	te_name = "Georgia's Bed";
	te_can_look_at = 1;
	te_full_move_block = 0;
begindefineterrain 499;
	clear;
	te_name = "Light Pillar";
	te_which_sheet = 505;
	te_which_icon = 0;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 17;
	te_draw_on_automap = 1;
	te_anim_steps = 4;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;
	te_light_radius = 8;
begindefineterrain 500;
	import = 206;
	te_name = "Georgia's Bed";
	te_which_sheet = 501;
	te_which_icon = 19;
	te_can_look_at = 1;
	te_full_move_block = 0;

// custom items

// Demonbane (made custom so as to not be transferable)
begindefineitem 450;
	import = 346;
	it_name = "Greatsword";
	it_full_name = "Demonslayer";
	it_bonus = 4;
	it_magic = 1;
	it_value = 0;
begindefineitem 451;
	clear;
	it_name = "Folded Paper";
	it_full_name = "Avernum Entrance Map";
	it_variety = 21;
	it_floor_which_sheet = 1014;
	it_floor_which_icon = 5;
	it_inventory_icon = 6;
	it_ability_1 = 207;
	it_ability_str_1 = 10;
	it_value = 10;
	it_weight = 10;
	it_identified = 1;
begindefineitem 452;
	clear;
	it_name = "Heal All";
	it_full_name = "Heal All";
	it_variety = 21;
	it_floor_which_sheet = 503;
	it_floor_which_icon = 0;
	it_inventory_icon = 1;
	it_charges = 1;
	it_ability_1 = 208;
	it_ability_str_1 = 11;
	it_value = 120;
	it_weight = 50;
	it_identified = 1;
// items given in arena
begindefineitem 453;
	import = 58;
	it_full_name = "Arena Long Sword";
	it_bonus = 7;
	it_value = 3500;
	it_magic = 1;
begindefineitem 454;
	import = 441;
	it_full_name = "Arena Bow";
	it_bonus = 3;
	it_magic = 1;
	it_value = 3500;
begindefineitem 455;
	import = 440;
	it_full_name = "Arena Helm";
	it_bonus = 5;
	it_magic = 1;
	it_value = 3000;
begindefineitem 456;
	import = 425;
	it_full_name = "Arena Shield";
	it_magic = 1;
	it_value = 3000;
// + ring of speed

// custom creatures

begindefinecreature 240;
	clear;
	cr_name = "She-Devil";
	cr_default_script = "shedevil";
	cr_which_sheet = 510;
	cr_small_or_large_template = 1;
	cr_level = 45;
	cr_hp_bonus = 100;
	cr_special_abil = 7;
	cr_default_attitude = 4;
	cr_species = 7;
	cr_natural_armor = 20;
	cr_attack_1 = 10;
	cr_attack_1_type = 1;
	cr_attack_2 = 5;
	cr_attack_23_type = 10;
	cr_what_stat_adjust 0 = 4;
	cr_amount_stat_adjust 0 = 3;
	cr_start_item 0 = 208;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 322;
	cr_start_item_chance 1 = 100;
	cr_immunities 0 = 90;
	cr_immunities 2 = 70;
	cr_immunities 5 = 20;

begindefinecreature 241;
	import = 75;
	cr_name = "Blond Townswoman";	
	cr_which_sheet = 511;
	cr_small_or_large_template = 1;

begindefinecreature 242;
	import = 123;
	cr_name = "Bandit Warrior";
	cr_level = 20;
	cr_start_item 0 = 37;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 38;
	cr_start_item_chance 1 = 2;
	cr_start_item 2 = 72;
	cr_start_item_chance 2 = 100;
	cr_start_item 3 = 73;
	cr_start_item_chance 3 = 2;
	cr_start_item 4 = 3;
	cr_start_item_chance 4 = 50;
	cr_start_item 5 = 143;
	cr_start_item_chance 5 = 30;
	cr_start_item 6 = 144;
	cr_start_item_chance 6 = 2;
	cr_start_item 7 = 225;
	cr_start_item_chance 7 = 3;

begindefinecreature 243;
	import = 124;
	cr_name = "Bandit Archer";
	cr_level = 20;
	cr_start_item 0 = 27;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 28;
	cr_start_item_chance 1 = 5;
	cr_start_item 2 = 96;
	cr_start_item_chance 2 = 100;
	cr_start_item 3 = 98;
	cr_start_item_chance 3 = 2;
	cr_start_item 4 = 106;
	cr_start_item_chance 4 = 100;
	cr_start_item 5 = 57;
	cr_start_item_chance 5 = 100;
	cr_start_item 6 = 3;
	cr_start_item_chance 6 = 50;
	cr_start_item 7 = 275;
	cr_start_item_chance 7 = 3;

begindefinecreature 244;
	import = 125;
	cr_name = "Bandit Mage";
	cr_level = 20;
	cr_start_item 0 = 22;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 112;
	cr_start_item_chance 1 = 100;
	cr_start_item 2 = 47;
	cr_start_item_chance 2 = 100;
	cr_start_item 3 = 249;
	cr_start_item_chance 3 = 10;
	cr_start_item 4 = 283;
	cr_start_item_chance 4 = 3;
	cr_start_item 5 = 285;
	cr_start_item_chance 5 = 3;
	cr_start_item 6 = 3;
	cr_start_item_chance 6 = 40;
	cr_start_item 7 = 270;
	cr_start_item_chance 7 = 6;

begindefinecreature 245;
	import = 123;
	cr_name = "Bandit Leader";
	cr_which_sheet = 512;
	cr_small_or_large_template = 1;
	cr_level = 30;
	cr_start_item 0 = 38;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 43;
	cr_start_item_chance 1 = 3;
	cr_start_item 2 = 58;
	cr_start_item_chance 2 = 100;
	cr_start_item 3 = 63;
	cr_start_item_chance 3 = 10;
	cr_start_item 4 = 3;
	cr_start_item_chance 4 = 70;
	cr_start_item 5 = 144;
	cr_start_item_chance 5 = 30;
	cr_start_item 6 = 147;
	cr_start_item_chance 6 = 30;
	cr_start_item 7 = 233;
	cr_start_item_chance 7 = 40;

begindefinecreature 246;
	import = 75;
	cr_name = "Townswoman w/Swd";
	cr_level = 28;
	cr_which_sheet = 513;
	cr_small_or_large_template = 1;
	cr_default_courage = 100;
	cr_ap_bonus = 1;
	cr_start_item 0 = 381;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 28;
	cr_start_item_chance 1 = 100;
	cr_start_item 2 = 333;
	cr_start_item_chance 2 = 100;
	cr_start_item 3 = 368;
	cr_start_item_chance 3 = 100;
